package com.lww.feature.test.thread.cyclicbarrier;

/**
 * User: yian
 * Date: 2018/2/4
 */
public class Competition implements Runnable {
    // 比赛进行次数记录
    private int index = 1;
    @Override
    public void run() {
        System.out.printf("所有马匹到达终点。准备开始第%d场比赛\n", index);
        index++;
    }
}
